package cn.com.cifi.mars.constant;

import cn.com.cifi.mars.util.StrUtils;

public enum VersionIdentifyEnum {

	MID_YEAR("mid_year","年中"),
	ALL_YEAR("all_year","全年"),
    ;

    private String key;
    private String value;

    VersionIdentifyEnum(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public String getKey() {
        return key;
    }

    public String getValue() {
        return value;
    }
    
    public static String getValueByKey(String key){
    	if(StrUtils.isEmpty(key)) {
    		return null;
    	}
        for(VersionIdentifyEnum eunm:VersionIdentifyEnum.values()){
            if(key.equals(eunm.getKey())){
                return eunm.getValue();
            }
        }
        return  null;
    }

}
